






from flask_script import Manager
from flask_migrate import MigrateCommand,Migrate

from info import create_app,db,models


# 调用业务模块
app = create_app("develop")

#创建Manager对象,关联app
manager = Manager(app)

#使用 Migrate,关联app,db
Migrate(app,db)

#给manager添加操作命令
manager.add_command("db",MigrateCommand)





if __name__ == '__main__':
    manager.run()


